<div class="content-form edit-aluno">
    <?php echo $this->partial('aluno/menu.phtml', array('urlbase'=>$this->urlbase,'urlfoto'=>$this->urlfoto,'modulo'=>$this->modulo,'controller' => $this->controller, 'action' => $this->action, 'data' => $this->data)); ?>
    
    <div class="content-list row_bc">
        
        <h2><?php echo $this->Menualuno_nom[$this->action];?></h2>
        
        <table id="tlist">
            <thead>
                <tr>
                    <th>Matrícula</th>
                    <th>Data</th>
                    <th>Curso</th>
                    <th width="80px">Turno</th>
                    <th>Turma</th>
                    <th width="50px">Semestre</th>
                    <th width="50px">Ano</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($this->result as $row) { 
                
                    $query = 'SELECT SQL_CACHE t.*,c.CBS_NOM FROM CURSO t ' 
                            .' INNER JOIN CURSOBASE c ON t.CBS_ID = c.CBS_ID '
                            .' WHERE t.CUR_ID = ' . $row['CUR_ID'];
                    $cur = $this->db->fetchRow($query);
                ?>
                <tr>  
                     <td><?php echo $row['MAT_ID']; ?></td>
                     <td><?php echo Datetools::invertDH_D($row['MAT_DATHOR']); ?></td>
                     <td><?php echo $cur['CBS_NOM']; ?></td>
                     <td><?php echo dominio::getTurno($cur['TUR_ID']); ?></td>
                     <td><?php echo $cur['CUR_TRM']; ?></td>
                     <td><?php echo dominio::getSemestres($cur['CUR_SEM']); ?></td>
                     <td><?php echo $cur['CUR_ANO']; ?></td>
                 </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>